from tkinter.font import names

from Autotest.BlogDetailTest import BlogDetail
from Autotest.BlogEditTest import BlogEdit
from Autotest.BlogListTest import BlogList
from Autotest.BlogLoginTest import BlogLogin
from Common.Untils import BlogDriver
from Autotest import BlogLoginTest
from Autotest import BlogListTest
from Autotest import BlogEditTest
from Autotest import BlogDetailTest

if __name__=="__main__":
    BlogLoginTest.BlogLogin().LoginFailTest()
    BlogLoginTest.BlogLogin().LoginSucTest()
    BlogListTest.BlogList().ListByLogin()
    BlogListTest.BlogList().ListByNotlogin()
    BlogEditTest.BlogEdit().EditByNotlogin()
    BlogEditTest.BlogEdit().EditByLogin()
    BlogDetailTest.BlogDetail().DetailByLogin()
    BlogDetailTest.BlogDetail().DetailByNotlogin()

    #退出浏览器
    BlogDriver.driver.quit()